package com.xyzwps.website.modules.user.entity;

import com.xyzwps.lib.jdbc.Table;

import java.time.Instant;

@Table("users")
public class User {
    private Long id;
    private String phone;
    private String displayName;
    private String avatar;
    private String password;
    private String email;
    private UserStatus status;
    private Instant createTime;
    private Instant updateTime;

    // region getters and setters

    public Long getId() {
        return id;
    }

    public User setId(Long id) {
        this.id = id;
        return this;
    }

    public String getPhone() {
        return phone;
    }

    public User setPhone(String phone) {
        this.phone = phone;
        return this;
    }

    public String getDisplayName() {
        return displayName;
    }

    public User setDisplayName(String displayName) {
        this.displayName = displayName;
        return this;
    }

    public String getAvatar() {
        return avatar;
    }

    public User setAvatar(String avatar) {
        this.avatar = avatar;
        return this;
    }

    public String getPassword() {
        return password;
    }

    public User setPassword(String password) {
        this.password = password;
        return this;
    }

    public String getEmail() {
        return email;
    }

    public User setEmail(String email) {
        this.email = email;
        return this;
    }

    public UserStatus getStatus() {
        return status;
    }

    public User setStatus(UserStatus status) {
        this.status = status;
        return this;
    }

    public Instant getCreateTime() {
        return createTime;
    }

    public User setCreateTime(Instant createTime) {
        this.createTime = createTime;
        return this;
    }

    public Instant getUpdateTime() {
        return updateTime;
    }

    public User setUpdateTime(Instant updateTime) {
        this.updateTime = updateTime;
        return this;
    }

    // endregion

}
